﻿@{
    ViewBag.Title = "";
}

@using MMS.UI.Extension
@section headSection{
    <script type="text/javascript">
        $(function () {
            $.globalHelper.datagridPara.init("/admin/SalesPromotion/PromotionAnalyze/@ViewBag.SMinMoney/@ViewBag.SMaxMoney/@ViewBag.SBeginTime/@ViewBag.SEndTime/@ViewBag.SPlace", [@Html.GetSonBtnJs()], [[
            { field: 'MName', title: '会员姓名', width: 50 },
            {
                field: 'Level', title: '会员等级', width: 50, formatter: function (colData) {
                    return colData.LName;
                }
            },
            { field: 'MConsumption', title: '会员总消费额余额', width: 50 },
            { field: 'MBalances', title: '会员余额', width: 50 },
            { field: 'MIntegral', title: '会员总积分', width: 50 }
            ]]);
            $("#tbList").datagrid($.globalHelper.datagridPara.paras);
        });
    </script>
    <script type="text/javascript">
        $(function () {
            $.globalHelper.datagridPara.init("/admin/SalesPromotion/TradeInfoAnalyze/@ViewBag.SMinMoney/@ViewBag.SMaxMoney/@ViewBag.SBeginTime/@ViewBag.SEndTime/@ViewBag.SPlace", [@Html.GetSonBtnJs()], [[
                {
                    field: 'MemberInfo', title: '会员名称', width: 50, formatter: function (colData) {
                        return colData.MName;
                    }
                },
                { field: 'TOriginalPay', title: '会员应付金额', width: 50 },
                { field: 'TActualPay', title: '会员实付金额', width: 50 },
                { field: 'TIntegral', title: '积分', width: 50 },
                  { field: 'TAddress', title: '消费地点', width: 50 },
                  {
                      field: 'TTime', title: '会员消费时间', width: 50, formatter: function (colData) {
                          return $.globalHelper.changeDateFormat(colData);
                      }
                  }
            ]]);
            $("#tbList1").datagrid($.globalHelper.datagridPara.paras);
        });
    </script>
}
<h1 style="color:blue;font-size:25px">此促销活动期购物会员名单:</h1>
<table id="tbList"></table>
<div style="width: 100%; height: 30px;"></div>
<h1 style="color:blue;font-size:25px">此促销活动期交易记录:</h1>
<table id="tbList1"></table>




